package org.wu.framework.lazy.orm.database.lambda.stream.script;

import javax.script.ScriptException;
import java.sql.Connection;
import java.sql.SQLException;

@FunctionalInterface
public interface DatabasePopulator {

	/**
	 * 执行脚本
	 * @param connection 数据库连接
	 * @throws SQLException sql异常
	 * @throws ScriptException 脚本异常
	 */
	void populate(Connection connection) throws SQLException, ScriptException;

}
